package cn.s1995.sloth.bizs.oo.vo;

import cn.s1995.sloth.common.core.convert.JoinUrlPrefixConvert;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * RankingShopListVO
 *
 * @author Lex
 * @description
 * @date 2024/04/30 15:00
 */
@Data
@Schema(description = "排行榜商家列表")
public class RankingShopListVO {

    /**
     * ID
     */
    @Schema(description = "ID")
    private Long id;

    /**
     * 名称
     */
    @Schema(description = "名称")
    @TableField("`name`")
    private String name;

    /**
     * 头像
     */
    @JsonSerialize(using = JoinUrlPrefixConvert.class)
    @Schema(description = "头像")
    private String avatar;

    /**
     * 简介
     */
    @Schema(description = "简介")
    private String intro;

    /**
     * 详细地址
     */
    @Schema(description = "详细地址")
    private String address;

    /**
     * 销量
     */
    @Schema(description = "销量")
    private Integer saleNum;
}
